<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ page import="com.google.appengine.api.users.User"%>
<%@ page import="com.google.appengine.api.users.UserService"%>
<%@ page import="com.google.appengine.api.users.UserServiceFactory"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>create member</title>

</head>
<body>
<%
		UserService userService = UserServiceFactory.getUserService();
		User user = userService.getCurrentUser();
		String id = request.getParameter("id");
		String nickName = request.getParameter("nickName");
		String userName = "";
		if (user != null) {
			userName = user.getNickname();
	%>

	<table width="369" height="168" border="0">
		<tr>
			<td height="44" bgcolor="#A4FFA4">
				<p>
					您目前是以為
					<%=userName%>登入<br> 如果這不是您的帳號，您可以 <a
						href="<%=userService.createLogoutURL(request.getRequestURI())%>">登出</a>
					<%
						}
			
					%>
				
			</td>
		</tr>
		<tr>
			<td align="left" bgcolor="#CFFFC4">
			<form action="/member/stock" method="get">
					<p>
						<input type=hidden name="id" value="<%=id%>">
						您的暱稱是:<input type="text" name="nickName" value="<%=nickName%>" /><br>
						請按編輯完成即可
					<p>
						<input type="submit" value="編輯完成" />
					<p>
				</form>
			</td>
		</tr>
	</table>





</body>
</html>